import {useContext} from 'react'
import {theme,context} from './index'

// 使用useContext 优雅的处理context状态
const Other = () => {
    let themeContent = useContext(theme)
    let contenContext = useContext(context)
    console.log(contenContext);
    

    return(
        <fieldset>
            <legend>other</legend>
            <h1 style={{color:themeContent.color}}>{contenContext.text}</h1>
        </fieldset>
    )
}
export default Other